<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Class ProjectDetail
 */
class BDSLeDetail extends Module
{
	/**
	 * Template
	 * @var string
	 */
	protected $strTemplate = 'mod_bds_le_detail';


	/**
	 * Display a wildcard in the back end
	 * @return string
	 */
	public function generate()
	{
		return parent::generate();
	}

	/**
	 * Generate module
	 */
	protected function compile()
	{	
		$this->id = $this->Input->get("id") ? $this->Input->get("id") : $this->Input->post("id");
		$objBds  =$this->Database->execute("SELECT * FROM tl_bds WHERE published=1 AND id=".$this->id);
		$arrBds = $objBds->fetchAllAssoc();
		$this->Template->bds = $arrBds[0];

		$objBdsOther  =$this->Database->execute("SELECT * FROM tl_bds WHERE published=1 AND id<>".$this->id." LIMIT 0,15");
		$arrBdsOther = $objBdsOther->fetchAllAssoc();
		$this->Template->arrBdsOther = $arrBdsOther;
	}
}
?>